package com.admin.controllerv1;

import com.admin.service.AdUserService;
import com.apis.login.AdUserloginApi;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/admin/api/v1/user")
@RestController
@Api(value = "用户登录管理",tags = "channel",description = "用户登录管理Apl")
public class AdUserloginController implements AdUserloginApi {
    @Autowired
    private AdUserService adUserService;

    @PostMapping("login")
    @Override
    public ResponseResult login(@RequestBody AdUserDto dto) {
        return adUserService.login(dto);
    }
}
